
<div class="col-sm-12 mt20">

    <div class="panel">
        <div class="panel-body">
            <div class="col-sm-12 control-label">
                <label class="i-switch bg-success pull-right" style="margin-left: 15px;margin-top: 10px;">
                    <input type="checkbox" ng-model="backState.back_state" ng-change="rec()"><i></i>
                </label>
                <h4 class="pull-right">是否开启自动退款(只处理开启后发生的退款订单，开启前的还需点击退款按钮退款，2分钟执行一次)</h4>
            </div>

        </div>
    </div>
    <div class="panel">
          <div class="panel-body">
               <div class="col-sm-12">
                 <div class="row">	
                     <div class="col-sm-2">
                          <input type="text" class="form-control" ng-model="searchform.order_code" placeholder="订单编号">
                     </div>
                     <div class="col-sm-2">
                        <input type="text" class="form-control" ng-model="searchform.title" placeholder="订单标题">
                     </div>
                     <div class="col-sm-2">
                           <ui-select ng-model="searchform.payment_type" theme="bootstrap" ng-keyup="myKeyup($event)">
                               <ui-select-match placeholder="支付类型">
                                 {{$select.selected.label}}
                               </ui-select-match>
                               <ui-select-choices repeat="item.value as item in payment_typearr | filter: $select.search">
                                 <span ng-bind-html="item.label | highlight: $select.search"></span>
                               </ui-select-choices>
                         </ui-select>
                     </div>
                     <div class="col-sm-2">
                        <ui-select ng-model="searchform.back_state" theme="bootstrap" ng-keyup="myKeyup($event)">
                               <ui-select-match placeholder="退款类型">
                                 {{$select.selected.label}}
                               </ui-select-match>
                               <ui-select-choices repeat="item.value as item in back_statearr| filter: $select.search">
                                 <span ng-bind-html="item.label | highlight: $select.search"></span>
                               </ui-select-choices>
                         </ui-select>
                     </div>
                     <div class="col-sm-2">
                          <ui-select ng-model="searchform.ticket_state" theme="bootstrap" ng-keyup="myKeyup($event)">
                               <ui-select-match placeholder="退票状态">
                                 {{$select.selected.label}}
                               </ui-select-match>
                               <ui-select-choices repeat="item.value as item in ticket_statearr| filter: $select.search">
                                 <span ng-bind-html="item.label | highlight: $select.search"></span>
                               </ui-select-choices>
                         </ui-select>
                     </div>
                     <div class="col-sm-2">
                       <input type="button " class="btn btn-info search form-control"  ng-click="load()" value="立即搜索">
                     </div>
                 </div>
                 
               </div>
          </div>
    </div>


            
<div class="panel panel-default">

 <table class="table table-hover table-bordered">
   <thead>
     <tr>
       <th class="text-center col-md-2">订单信息</th>
       <th class="text-center col-md-2">支付信息</th>
       <th class="text-center col-md-1">创建时间</th>
       <th class="text-center col-md-1">订单来源</th>
       <th class="text-center col-md-1">退票状态</th>
       <th class="text-center col-md-2">退款信息</th>
       <th class="text-center col-md-2">备注</th>
       <th class="text-center col-md-1">操作</th>
     </tr>
   </thead>
   <tbody>
     <tr ng-repeat="obj in objs">
       <td class="text-left">
         订单编号：{{obj.order_code}}
        <br>
         订单序号：{{obj.sequence}}
        <br>
         订单标题：{{obj.title}}
       </td>
       <td class="text-left">
         支付金额：{{obj.back_price/100 | currency : '￥'}}
        <br>
         支付类型：
         <span class="text-center" ng-show="obj.payment_type=='0'">默认</span>
         <span class="text-center" ng-show="obj.payment_type=='1'">支付宝支付</span>
         <span class="text-center" ng-show="obj.payment_type=='2'">微信支付</span>
         <span class="text-center" ng-show="obj.payment_type=='4'">预存支付</span>
         <span class="text-center" ng-show="obj.payment_type==undefined"></span>
        </td>
       <td class="text-center">{{obj.create_time}}</td>
       <td class="text-center">{{obj.from_app_id}}</td>
       <td class="text-center">{{obj.ticket_statename}}</td>
       <td class="text-left">
          退款状态：{{obj.back_statename}}
          <br>
          实际退款金额：{{obj.actual_back_price/100 | currency : '￥'}}
          <br>
          退款时间：{{obj.update_time}}
       </td>
       <td class="text-center">{{obj.remark}}</td>
       <td class="text-center">
           <a ng-show="obj.back_state=='0' && obj.ticket_state == 1" ng-click="back(obj)" class="btn btn-success btn-xs">退款</a>
       </td>
     </tr>
   </tbody>
 </table>

 <div class="text-right">

   <pagination 
     total-items="bigTotalItems" 
     ng-model="bigCurrentPage" 
     max-size="maxSize" 
     class="pagination-sm" 
     boundary-links="true" 
     ng-change="load()"
     items-per-page="itemsPerPage"
     previous-text="上一页"
     next-text="下一页"
     first-text="首页"
     last-text="末页"
     rotate="false">
   </pagination>

 </div>
 
</div>
</div>